package com.jiedeng.dao;

import com.jiedeng.model.AppVersion;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Date;
import java.util.List;

/**
 * Created by qinyu on 2017/12/12.
 */
public interface IAppVersionRepository extends JpaRepository<AppVersion, Long> {

    List<AppVersion> findTop1ByCreateTimeGreaterThanAndOpenOrderByCreateTimeDesc(Date createTime, Boolean isOpen);

    List<AppVersion> findByVersionName(String versionName);

}
